﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace FeatureModelTool.Windows
{
    /// <summary>
    /// Interaction logic for NewFolderDialog.xaml
    /// </summary>
    public partial class NewFolderDialog : Window
    {
        public bool Dirty { get; protected set; }
        public string FolderName { get; protected set; }
        public NewFolderDialog()
        {
            InitializeComponent();
        }
        /// <summary>
        /// OkButton Click Event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OkButton_Click(object sender, RoutedEventArgs e)
        {
            this.Dirty = true;
            this.FolderName = this.NameTextbox.Text;
            this.Close();
        }
    }
}
